import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path:'/',
      redirect:'/Login'
    },
    {
      path: '/Home',
      name:'Home',
      component: () => import('../views/Home/Home.vue'),
    },
    {
      path: '/More',
      name:'More',
      component: () => import('../views/Home/components/More.vue'),
    },
    {
      path: '/Login',
      name:'Login',
      component: () => import('../views/Users/Login.vue')
    },
    {
      path: '/Borrow',
      name:'Borrow',
      component: () => import('../views/Borrow/Borrow.vue')
    },
    {
      path: '/Return',
      name:'Return',
      component: () => import('../views/Return/Return.vue')
    },
    {
      path: '/Mine',
      name:'Mine',
      component: () => import('../views/Mine/Mine.vue'),
    },
    {
      path: '/Mine/toborrow',
      component: () => import('@/views/Mine/components/Toborrow.vue')
    },
    {

      path: '/Mine/problem',
      component: () => import('@/views/Mine/components/Problem.vue')
    },
    {
      path: '/Mine/feedback',
      component: () => import('@/views/Mine/components/FeedBack.vue')
    },
    {
      path: '/Mine/recommendation',
      component: () => import('@/views/Mine/components/Recommendation.vue')
    },
    {
      path: '/Mine/letter',
      component: () => import('@/views/Mine/components/Letter.vue')

    },
    {
      path: '/Mine/borrowbooks',
      component: () => import('@/views/Mine/components/BorrowBooks.vue')

    },
    {
      path: '/Mine/reader',
      component: () => import('@/views/Mine/components/Reader.vue')

    },
    {
      path: '/Mine/introduction',
      component: () => import('@/views/Mine/components/introduction.vue')
    },
    {
      path: '/Mine/service',
      component: () => import('@/views/Mine/components/service.vue')
    },
    {
      path: '/Mine/entering',
      component: () => import('@/views/Mine/components/entering.vue')
    },
    {
      path: '/Mine/lead',
      component: () => import('@/views/Mine/components/lead.vue')
    },
    {
      path: '/Mine/announcement',
      component: () => import('@/views/Mine/components/announcement.vue')
    },
    {

      path: '/Mine/qrcode',
      component: () => import('@/views/Mine/components/Code.vue')
    },
    {

      path: '/Mine/system',
      component: () => import('@/views/Mine/components/system.vue')
    },
    {
      path: '/Mine/datareport',
      component: () => import('@/views/Mine/components/datareport.vue')
    },

    {
      path: '/Mine/periodicals',
      component: () => import('@/views/Mine/components/Periodicals.vue')
    },

  ]
})

export default router
